import Vuex from 'vuex'
import Vue from 'vue'
import {getters} from "./getters";
import {mutations} from "./mutations";

Vue.use(Vuex)

const state = {
  adminInfo: JSON.parse(localStorage.getItem("adminInfo")) || {},//先去localStorage中获取数据
}

const store = new Vuex.Store({
  state,
  getters,
  mutations,
})

export default store
